If the widget has been destroyed since a DBus message had been sent,
we could be in a condition that the widget pointer exists but it does
not have a window.
This bails as if the widget didn't exist if there is no available
GdkWindow.
We also set the extents to 0 to be defensive since this is a vfunc
implementation.
https://bugzilla.gnome.org/show_bug.cgi?id=746586
GdkWindow *window;
gint x_widget, y_widget, x_window, y_window;
+ *x = 0;
+ *y = 0;
+ *width = 0;
+ *height = 0;
+
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text));
if (widget == NULL)
return;
gtk_text_view_get_iter_location (view, &iter, &rectangle);
window = gtk_text_view_get_window (view, GTK_TEXT_WINDOW_WIDGET);
+ if (window == NULL)
+ return;
+
gdk_window_get_origin (window, &x_widget, &y_widget);
*height = rectangle.height;